package com.woniu.userservice.service;

import com.woniu.userservice.dto.BiddingsDTO;
import com.woniu.userservice.entity.Biddings;

import java.util.Date;
import java.util.List;

public interface BiddingsService {

    Biddings queryById(Integer id);

    List<Biddings> queryAllByLimit(int offset, int limit);
    
    List<Biddings> findAll();
    Biddings insert(Biddings biddings);

    Biddings update(Biddings biddings);

    boolean deleteById(Integer id);

    List<BiddingsDTO> queryByGoodsid(Integer goodsid);
    Boolean deleteByUserId(Integer id, Integer userId);

    List<Biddings> findByMsg(String goodsName, Integer userId, Double price, Date biddingTime);
}